//
//  STHairProIntroduceView.m
//  YiYueHairdresser
//
//  Created by zhouzhouzhou on 2018/10/12.
//  Copyright © 2018年 YuYiLian. All rights reserved.
//

#import "STHairProIntroduceView.h"

@implementation STHairProIntroduceView

-(id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if(self){
       STHairProIntroduceView * introduceView  = [[[NSBundle mainBundle] loadNibNamed:@"STHairProIntroduceView" owner:nil options:nil] lastObject];
        introduceView.frame = frame;
        self = introduceView;
    }
        
    return self;
}


-(void)setproIntruduceWithDic:(id)proDic{
    self.intruduceText.editable = NO;
    if ([proDic isKindOfClass:[STHairProDetailInfoModel class]]) {
        STHairProDetailInfoModel * model = proDic;
        self.collectionLab.text = [NSString stringWithFormat:@"%d",model.collection];
        self.transLab.text = [NSString stringWithFormat:@"%d",model.reposted];
        self.seeLab.text = [NSString stringWithFormat:@"%d",model.pageview];
        self.pageLab.text = [NSString stringWithFormat:@"1/%d",(int)model.pictrue.count];
        self.intruduceText.text = model.describe;
    }
}

@end
